/**
 * @author shenw
 */
function GameState() {
	// The main timer, 24 frames a second.
	this.gameTimer = null;
	// Count of how many frames have elapsed since the lights last changed.
	this.lightChangeCounter = 0;
	// Current Game.
	this.currentGame = new Title();
	this.score = 0;
	// Mode the game is currently in: "title", "gameSelection" or "miniGame".
	this.currentMode = null;
	
	//Flag variables for player movement.
	this.playerDirectionUp = false;
	this.playerDirectionDown = false;
	this.playerDirectionRight = false;
	this.playerDirectionLeft = false;
	this.playerAction = false;
	
	this.reset = function() {
		this.playerDirectionUp = false;
		this.playerDirectionDown = false;
		this.playerDirectionRight = false;
		this.playerDirectionLeft = false;
		this.playerAction = false;
		this.score = 0;
	}
}
